package functions;
import main.ContingencyTable;


public class PiatetskyShapiroFunction extends GeneralFunction {

	public PiatetskyShapiroFunction(String name) {
		super(name);
	}

	@Override
	public double calculate(ContingencyTable t) {
		return t.f11() / t.N() - (t.f1p() * t.fp1()) / (t.N() * t.N());
	}

}
